// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ServletHelper.java

package com.hfstu.file.server;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;

// Referenced classes of package com.hfstu.file.server:
//			ResponseStatus

public final class ServletHelper
{

	private static final String ISO8859_1_ENCODE = "ISO8859_1";
	private static final String GBK_ENCODE = "gbk";

	public ServletHelper()
	{
	}

	public static void writeStatus(HttpServletResponse res, ResponseStatus rs)
		throws IOException
	{
		writeStatus(res, rs.toString());
	}

	public static void writeStatus(HttpServletResponse res, String rs)
		throws IOException
	{
		PrintWriter out = null;
		try
		{
			out = res.getWriter();
			out.write(rs);
			out.flush();
		}
		catch (Exception e)
		{
			throw new IOException(e);
		}
		break MISSING_BLOCK_LABEL_44;
		Exception exception;
		exception;
		if (out != null)
			out.close();
		throw exception;
		if (out != null)
			out.close();
		return;
	}
}
